﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HTW_Red_October
{
	public partial class videoForm : Form
	{
		public videoForm()
		{
			InitializeComponent();
		}
		
		private void videoForm_Load(object sender, EventArgs e)
		{
			submarineMediaPlayer.uiMode = "none";
			submarineMediaPlayer.URL = @"Resources\submarine.mp4";
		}

		private void submarineMediaPlayer_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
		{
			if (submarineMediaPlayer.playState == WMPLib.WMPPlayState.wmppsMediaEnded)
			{
				textDialogBox newTextDialogBox = new textDialogBox();
				newTextDialogBox.Show();
				this.Close();
			}

		}

		private void submarineMediaPlayer_EndOfStream(object sender, AxWMPLib._WMPOCXEvents_EndOfStreamEvent e)
		{
			/*
			 * textDialogBox newTextDialogBox = new textDialogBox();
				newTextDialogBox.Show();
				this.Close();
			 * */
		}
	}
}
